package com.itheima.config;

import com.itheima.domain.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 定义一个加载bean
 */
@Configuration
public class UserConfig {
    //创建一个user方法
    @Bean
    public User user(){
        return new User();
    }
}
